<?php
/**
 * H5活动的中间件
 * panglishan
 * 2020.10.18
 */

namespace App\Http\Middleware;

use App\Exceptions\BasicException;
use App\Http\Controllers\App\Rebuild\PublicApiController;
use App\Services\Draw\DrawManager;
use App\Services\Tools\JwtService;
use Closure;


class DrawOpenCheckMiddleware {

    public function handle($request, Closure $next, $type) {
        //检查游戏是否开启
        (new DrawManager($type))->checkIsOpen();
        return $next($request);
    }
}
